﻿namespace TfsCloudDeploy.Workflow.Core.Activities
{
    using System;
    using System.ComponentModel;
    using System.Reflection;

    /// <summary>
    /// Reflected from: Microsoft.TeamFoundation.Build.Workflow.Activities.SRDisplayNameAttribute.
    /// Assembly: Microsoft.TeamFoundation.Build.Workflow, Version=10.0.0.0.
    /// </summary>
    [AttributeUsage(AttributeTargets.All)]
    internal sealed class SRDisplayNameAttribute : DisplayNameAttribute
    {
        private const BindingFlags GetBindingFlags = (BindingFlags.Public | BindingFlags.Static);

        public SRDisplayNameAttribute(Type type, string displayName)
            : base((string)type.GetMethod("Get", BindingFlags.Public | BindingFlags.Static).Invoke(null, new object[] { displayName }))
        {
        }
    }

}
